from random import randint

class Die:
    """筛子类"""

    def __init__(self, number_side=6) -> None:
        
        self.number_side = number_side

    
    def roll(self) -> int:
        """抛掷筛子"""

        return randint(1, self.number_side)